home *** CD-ROM | disk | FTP | other *** search
- Path: news-m01.ny.us.ibm.net!usenet
- From: tnagy@ibm.net
- Newsgroups: comp.lang.rexx
- Subject: Re: b tree search needed
- Date: 2 Apr 1996 14:43:51 GMT
- Distribution: inet
- Message-ID: <4jref7$1ade@news-s01.ny.us.ibm.net>
- References: <bgBXxgabrgbM090yn@blvl.igs.net> <4jj9nt$ssc@stratus.skypoint.net> <WOrXxgabrg+e090yn@blvl.igs.net> <4jp93h$1o3u@news-s01.ny.us.ibm.net>
- Reply-To: tnagy@ibm.net
- NNTP-Posting-Host: slip129-37-157-67.on.ca.ibm.net
- X-Newsreader: IBM NewsReader/2 v1.2
-
- In <4jp93h$1o3u@news-s01.ny.us.ibm.net>, ucasp@ibm.net writes:
- >In <WOrXxgabrg+e090yn@blvl.igs.net>, bnear@blvl.igs.net (Brian Near) writes:
- >>>Is there a difference between a Btree search and a binary search? I'd really
- >>>like to know, because I've heard of both terms.
- >>
- >>No, they are the same thing.
- >>
- >Sorry, but I think there is a great difference between a binary serach and
- >a b-tree search.
- >
- >It's because binary search is the former decribed algorithm, which can search
- >an item in an array and works (efficient) only if you can reach each item of
- >that array in a constant time.
- >
- >A b-tree search is a search in an b-tree, which is a special kind of an ordered
- >tree. That kind of tree is often used for indexes because its easy to keep
- >such trees on a hard disc. This is because a b-tree is very flat, very wide and
- >has many links from one node to the next, so that it's much faster than a
- >simple greater-smaller-compare to get to the right leaf wich contains the
- >desired data.
- >
- >I was looking for some books about b-trees but I only found my old
- >university script yet.
-
- FYI, a binary tree has two branches at any one node. A B-tree has multiple
- branches at any one node. For a full treatment, please refer to D.E. Knuth's
- The Art of Computer Programming (Vol 3).
-
- Tom
-
-